<?php
require_once '../common/requires.php';

$params = array(
	'username' => 'tom.wang.sz@qq.com',
	'password' => 'alinwang',
);
$result = $client->getAccessToken($params, 'password');
var_dump($result);
echo '<br/><br/>';
?>
<a href="../api/5_api.php?access_token=<?php echo urlencode($result['access_token']); ?>">Test Api</a>